package com.tx.springboot_demo.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
@RequestMapping("/login/loginController")
public class LogController {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("/log")
    public String recordLog(){
        //TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
        logger.trace("日志内容 trace");
        logger.debug("日志内容 debug");
        logger.info("日志内容 info");
        logger.error("日志内容 error");
        return "log";
    }
}
